package net.lab1024.sa.admin.module.business.lcy.student.dao;

import java.util.List;
import net.lab1024.sa.admin.module.business.lcy.student.domain.entity.LcyStudentEntity;
import net.lab1024.sa.admin.module.business.lcy.student.domain.form.LcyStudentQueryForm;
import net.lab1024.sa.admin.module.business.lcy.student.domain.vo.LcyStudentVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 学生基本信息 Dao
 *
 * @Author yangz
 * @Date 2025-10-31 18:41:13
 * @Copyright yangz
 */

@Mapper
public interface LcyStudentDao extends BaseMapper<LcyStudentEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<LcyStudentVO> queryPage(Page page, @Param("queryForm") LcyStudentQueryForm queryForm);

    /**
     * 更新删除状态
     */
    long updateDeleted(@Param("studentId")Long studentId,@Param("deletedFlag")boolean deletedFlag);

    /**
     * 批量更新删除状态
     */
    void batchUpdateDeleted(@Param("idList")List<Long> idList,@Param("deletedFlag")boolean deletedFlag);

}
